package shun.demo.memory;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import shun.demo.R;

public class MemoryActivity1 extends Activity {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.memory);
        MemoryUtil.allocateFixedMB();
    }

    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.a:
                startActivity(new Intent(this, MemoryActivity1.class));
                break;
            case R.id.b:
                startActivity(new Intent(this, MemoryActivity2.class));
                break;
            case R.id.c:
                startActivity(new Intent(this, MemoryActivity3.class));
                break;
            case R.id.d:
                startActivity(new Intent(this, MemoryActivity4.class));
                break;
            case R.id.e:
                startActivity(new Intent(this, MemoryActivity5.class));
                break;
            case R.id.f:
                startActivity(new Intent(this, MemoryActivity6.class));
                break;
            case R.id.g:
                startActivity(new Intent(this, MemoryActivity7.class));
                break;
            case R.id.h:
                startActivity(new Intent(this, MemoryActivity8.class));
                break;
            case R.id.i:
                startActivity(new Intent(this, MemoryActivity9.class));
                break;
            case R.id.j:
                startActivity(new Intent(this, MemoryActivity10.class));
                break;
        }
    }
}
